<template>
    <div>
        <h3>新闻详情-----{{ $route.params.id }}</h3>

        <comment-box></comment-box>
    </div>
</template>

<script>

import comment from '../subcomponents/comment.vue'

export default {
    data(){
        return {
            id: this.$route.params.id
        }
    },
    components: { // 用来注册子组件的节点
        "comment-box":comment
    }
}
</script>

<style lang="scss" scoped>
    
</style>